//---------------------------------------------------------------------------

#ifndef PenH
#define PenH

//---------------------------------------------------------------------------
#endif
#include "GLPoint.h"
#include "Scene.h"

class Pen {
private:
        GLPoint position;
        float direction;
        Scene *scene;
public:
        Pen(Scene *scene);
        Pen(Scene *scene, GLPoint position, float direction);
        void move(float x, bool penDown);
        void moveTo(float x, float y, bool penDown);
        void moveTo(GLPoint p, bool penDown);
        void turn(float angle);
        void turnTo(float angle);
        GLPoint getPosition();
        void setPosition( GLPoint position);
        void torn( float angle );

        void avanza ( float distance, bool penDown );
        void setDirection ( float direction ) ;
};
